<template>
    <div class="main">
        <div class="body">
            <div class="tip">智慧医院--通知公告系统</div>
        </div>
    </div>
</template>
<script>
import bottomView from "@/components/bottom.vue";
import { mapActions } from 'vuex';

export default {
    data() {
        return {
            path: '',
        };
    },
    components: {
        bottomView
    },
    mounted() {
        this.path = this.$route.path
        this.addPath()
    },
    methods: {
        ...mapActions(['uploadAdd']),
        addPath() {
            this.uploadAdd({
                id: 0,
                label: '首页',
                path: this.path,
            })
        },
    },
}
</script>
<style scoped>
.body {
    text-align: center;
}

.main {
    height: 100%;
    width: 100%;
    background: url(../../assets/main_bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}


.img {
    width: 35%;
    margin: 0 auto;
    text-align: center;
}

.tip {
    margin-top: 140px;
    margin-bottom: 20px;
    margin-left: -50px;
    font-size: min(4vw, 33px);
    color: #2E85FF;
    font-weight: bold;
}
</style>